﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hanhud.Web.EAuction
{
    public class CPropertyType
    {
        #region Properties
        public int PropertyTypeID { get; private set; }
        public string Title { get; set; }

        private int _parentPropertyTypeID = -1;

        private CPropertyType _parent = null;
        public CPropertyType Parent
        {
            get
            {
                return _parent;
            }
            private set
            {
                _parent = value;
            }
        }

        private PropertyTypeAttributeCollection _propertyTypeAttributes = null;
        public PropertyTypeAttributeCollection PropertyTypeAttributes
        {
            get
            {
                if (_propertyTypeAttributes == null)
                {
                }
                return _propertyTypeAttributes;
            }
            private set
            {
                _propertyTypeAttributes = value;
            }
        } 
        #endregion

        #region Constructors
        public CPropertyType(string title)
        {
            this.PropertyTypeID = -1;
            this.Title = title;
        }

        public CPropertyType(int propertyTypeID, string title)
        {
            this.PropertyTypeID = propertyTypeID;
            this.Title = title;
        }
        #endregion
    }
}
